package main

import (
	"log"
	"time"
)

func main() {
	tickerA := time.NewTicker(time.Second * 1)
	tickerB := time.NewTicker(time.Second * 3)
	go func() {
		time.Sleep(5 * time.Second)
		tickerA.Stop()
		log.Println("stop TickA")
		time.Sleep(10 * time.Second)
		log.Println("start TickA")
		tickerA = time.NewTicker(time.Second * 1)
	}()
	for {
		select {
		case <-tickerA.C:
			log.Println("doning A")
		case <-tickerB.C:
			log.Println("doning B")
		}
	}

}
